package com.bci.internal.engine.bcibpmengine.validator.annotation;

import com.bci.internal.engine.bcibpmengine.validator.ChineseAlphabetDigitValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = ChineseAlphabetDigitValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface ChineseAlphabetDigit {

    String message() default "输入字符必须是中英文和数字";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
